package com.c2001.springboot.dao;

import com.c2001.springboot.controller.request.BaseRequest;
import com.c2001.springboot.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookDao {

    List<Book> list();

    //ALTER TABLE library.book ADD rent_price INT NULL;
    void add(Book obj);

    Book getById(Integer id);

    void update(Book obj);

    void deleteById(Integer id);

    List<Book> listByCondition(BaseRequest baseRequest);

    Book getByName(String name);
}
